package com.chen.blog.vo;

import lombok.Data;

import java.util.Collection;

@Data
public class LabelsManageVo {
    private String text;
    private Collection<String> tags;
    private Collection<LabelsManageVo> nodes;
    private String parentId;
    private String parentName;
    private String id;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        LabelsManageVo that = (LabelsManageVo) o;
        if (!text.equals(that.text)) return false;
        if (!tags.equals(that.tags)) return false;
        return nodes.equals(that.nodes);
    }
}
